﻿/****** Object:  Table [dbo].[LeaveRecord]    Script Date: 09/18/2009 19:03:36 ******/
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[LeaveRecord]') AND type in (N'U'))
DROP TABLE [dbo].[LeaveRecord]
GO
/****** Object:  Table [dbo].[LeaveRecord]    Script Date: 09/18/2009 19:03:36 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[LeaveRecord]') AND type in (N'U'))
BEGIN
CREATE TABLE [dbo].[LeaveRecord](
	[workflowInstanceId] [uniqueidentifier] NOT NULL,
	[ownerId] [uniqueidentifier] NULL,
	[nextRecommenderId] [uniqueidentifier] NULL,
	[currentState] [nchar](50) NULL,
	[approverId] [uniqueidentifier] NULL,
	[leaveType] [nchar](50) NULL,
	[fromDate] [datetime] NULL,
	[todate] [datetime] NULL,
	[daysCount] [int] NULL,
 CONSTRAINT [PK_LeaveRecord_1] PRIMARY KEY CLUSTERED 
(
	[workflowInstanceId] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
END
GO
